<!--热门书单-->
<template>
    <div class="hot_book_list">
      <h2>热门书单<span>换一换</span></h2>
      <div class="hot_list">
        <a  @click="goXq(item.bookListId)" class="clearfix" v-for="(item,index) in hotBook.bookList" :key="index">
          <img @click="goXq(item.bookListId)" :src="item.imgUrl" alt="">
          <h3>{{item.ListTitle}}</h3>
          <p>{{item.ListIntroduction}}</p>
        </a>
      </div>
    </div>
</template>

<script>
  export default {
    props: ['hotBook'],
    data () {
      return {
        msg: '数据初始化'
      }
    },
    methods: {
      goXq (bookid) {
        this.$router.push( { name: 'bookinfo', params: { bookid: bookid }})
      }
    }    
  }
</script>


<style scoped>
  .hot_book_list{
    background: #fff;
    margin-top: 10px;
    padding-top: 16px;
    width: 320px;
    overflow: hidden;
  }

  .hot_book_list h2{
    margin: 0px 16px 10px;
    border-left: 6px solid #f60;
    text-indent: 8px;
    font-size: 18px;
    height: 16px;
    line-height: 16px;
    font-weight: normal;
    position: relative;
  }
  .hot_book_list h2 span{
    position: absolute;
    color: #F60;
    font-size: 13.44px;
    right:0;
    bottom: -4px;
    padding-left: 8px;
    background: url(../../../../static/img/newlist_ico.png) no-repeat 0px center;
    background-size: 13.4px;
  }
  .hot_list{
    margin-top: 10px;
  }
  .hot_list a{
    display: block;
    width: 320px;
    padding: 14px;
    border-bottom: 1px solid #E7E7E7;

  }
  .hot_list a:last-of-type{
    border-bottom: none;

  }
  .hot_list a h3{
    font-size: 15px;
    font-weight: normal;
    color:#333;
  }
  .hot_list a p{
    margin-top: 6px;
  }
  .hot_book_list .hot_list img{
    width: 70px;
    float: left;
    margin-right: 7px;
  }
</style>
